import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import Feedback from '../views/feedback/Feedback.vue'
import Courses from '../views/courses/Courses.vue'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    redirect: '/feedback'
  },
  {
    path: '/feedback',
    name: 'Feadback',
    component: Feedback
  },
  {
    path: '/courses',
    name: 'Courses',
    component: Courses
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
